package com.xiaomei.manager.dao;

import java.util.List;

import com.xiaomei.manager.model.SysResource;

public interface SysResourceMapper {
    int deleteByPrimaryKey(Long id);
    
    /**
     * 根据ParentIds删除Resource
     * @param ParentIds
     * @return
     */
    int deleteByParentids(String ParentIds);

    int insert(SysResource record);

    int insertSelective(SysResource record);

    SysResource selectByPrimaryKey(Long id);
    
    List<SysResource> selectAll();

    int updateByPrimaryKeySelective(SysResource record);

    int updateByPrimaryKey(SysResource record);
    
    /**
     * 查询最近插入记录的ID编号
     * @return
     */
    Long selectLastInsertID();
}